package com.jessechanrui.template.skeleton.infrastructure.demo.po;

import com.jessechanrui.template.skeleton.common.base.BasePO;
import com.jessechanrui.template.skeleton.common.constant.CommonConstant;
import lombok.*;
import lombok.experimental.Accessors;

import javax.persistence.*;

/**
 * 示例PO
 * @author chenrui
 * @date 2024/1/30
 */
@Data
@Entity
@Accessors(chain = true)
@Table(name = CommonConstant.TABLE_NAME_PREFIX + "demo")
@EqualsAndHashCode(callSuper = true)
public class DemoPO extends BasePO {

    @Id
    @Column(name = "id", length = 5)
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Integer id;

    @Column(name = "name", length = 50)
    private String name;
}
